//
//  Data+HK.swift
//  FileHandle
//
//  Created by Kun Huang on 2020/3/13.
//  Copyright © 2020 Kun Huang. All rights reserved.
//

import UIKit

public extension Data {
    
    /// 读取字节
    func readToString() -> String {
        let bytes = map({Character(Unicode.Scalar.init($0))})
        let string = String(bytes)
        return string
    }
}
